export const FORM_PARENT_MENU = [
    {
        type: "a-input",
        field: "menuName",
        title: "菜单名称",
        value: "",
        props: { placeholder: "请输入菜单名称" },
        validate: [
            { required: true, message: "请输入菜单名称", trigger: "blur" }
        ]
    },
    {
        type: "a-input",
        field: "menuIcon",
        title: "菜单图标",
        value: "",
        props: {placeholder:"请输入菜单图标"}
    },
    {
        type: "a-input",
        field: "menuPath",
        title: "节点code",
        value: "",
        props: { placeholder: "请输入节点code" },
        validate: [
            { required: true, message: "请输入节点code", trigger: "blur" }
        ]
    },
    {
        type: "select",
        field: "menuType",
        title: "节点类型",
        value: "",
        options:[{label:'菜单',value:'M'},{label:'按钮',value:'B'}],
        props: { placeholder: "请选择节点类型" },
        validate: [
            { required: true, message: "请选择节点类型", trigger: "change" }
        ]
    }
]

export const MENU_COLUMNS = [
    {
        title: 'name',
        dataIndex: 'menuName'
    },
    {
        title: 'icon',
        dataIndex: 'menuIcon'
    },
    {
        title: 'type',
        dataIndex: 'menuType',
        customRender: (text, row, index) => {
            if (row.menuType === 'M') {
                return 'menu'
            } else if (row.menuType === 'B'){
                return 'btn'
            }
            return ''
        },
    },
    {
        title: 'code',
        dataIndex: 'menuPath',
    },
    {
        title: '状态',
        dataIndex: 'menuStatus',
        scopedSlots: { customRender: 'menuStatus' }
    }
]


export const PARAMS_ROLE = [
    {
        type: "a-input",
        field: "roleName",
        title: "角色名称",
        value: "",
        props: {placeholder:"请输入角色名称"}
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
export const FORM_FIELD_ROLE = [
    {
        type: "radio",
        field: "type",
        title: "数据权限（设置该角色的用户可以操作的数据的范围）",
        value: "",
        options: [
            { label: '个人', value: 1, content: '只能操作自己和下属的数据' },
            { label: '所属部门', value: 2 ,content: '能操作自己、下属、和自己所属部门的数据'},
            { label: '所属部门及下属部门', value: 3 ,content: '所属部门及下属部门 能操作自己、下属和自己所属部门及其子部门的数据'},
            { label: '全公司', value: 4 ,content: '能操作全公司的数据'}
        ],
        props: { placeholder: "请选择数据权限" },
        validate: [
            { required: true, message: "请选择数据权限", trigger: "change" }
        ],
        emit: ['change'],
        emitPrefix: 'btn-radio',
    },
    {
        type:'html',
        col: { span: 24},
        field:"customInfo",
        title: '',
        className:'custom-html'
    },
]
export const FORM_ROLE = [
    {
        type: "a-input",
        field: "roleName",
        title: "角色名称",
        value: "",
        props: { placeholder: "请输入角色名称" },
        validate: [
            { required: true, message: "请输入角色名称", trigger: "blur" }
        ]
    },
    {
        type: "select",
        field: "roleTypeCode",
        title: "关联账号类型",
        value: "",
        options:[],
        props: { placeholder: "请选择账号类型" },
        validate: [
            { required: true, message: "请选择账号类型", trigger: "change" }
        ]
    },
    {
        type: "checkbox",
        field: "availableType",
        title: "可配置账户类型",
        value: [],
        options:[],
        props: { placeholder: "请配置账号类型" },
        validate: [
            { required: true, message: "请配置账号类型", trigger: "change" }
        ]
    },
    {
      type:"a-input",
      field:"roleDescription",
      title:"角色描述",
      value: "",
      props: { type: "textarea" },
     
    }, 
]
export const ROLE_COLUMNS = [
    {
        title: '角色名称',
        dataIndex: 'roleName'
    },
    {
        title: '角色描述',
        dataIndex: 'roleDescription',
    },
    {
        title: '账号类型',
        dataIndex: 'roleTypeName'
    },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
        sorter: true
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    }
]

export const FORM_ENTERPRISE_ROLE = [
    {
        type: "a-input",
        field: "roleName",
        title: "角色名称",
        value: "",
        props: { placeholder: "请输入角色名称" },
        validate: [
            { required: true, message: "请输入角色名称", trigger: "blur" }
        ]
    },
    {
      type:"a-input",
      field:"roleDescription",
      title:"角色描述",
      value: "",
      props: { type: "textarea" },
     
    }, 
]
export const ROLE_ENTERPRISE_COLUMNS = [
    {
        title: '角色名称',
        dataIndex: 'roleName'
    },
    {
        title: '角色描述',
        dataIndex: 'roleDescription',
    },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
        sorter: true
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    }
]

export const FORM_CHILD_MENU = [
    {
        type: "a-input",
        field: "name",
        title: "应用名称",
        value: "",
        props: { placeholder: "请输入应用名称" },
        validate: [
            { required: true, message: "请输入应用名称", trigger: "blur" }
        ]
    },
    {
        type: "a-input",
        field: "code",
        title: "应用code",
        value: "",
        props: { placeholder: "请输入应用code",disabled:true},
        validate: [
            { required: true, message: "请输入应用code", trigger: "blur" }
        ]
    },
]

export const OPTION_INLINE = {
    form: {layout: 'inline'},
    resetBtn: false,
    submitBtn: false
}
export const OPTION_BLOCK= {
    form: { layout: "vertical" },
    row:{gutter: 20},
    resetBtn: false,
    submitBtn: false
}
 

export const SIGN_OPTIONS = [
    {
        value: 'name',
        label: '姓名',
    },
    {
        label: '身份证号码',
        value: 'idCard',
    },
    {
        label: '手机号码',
        value: 'phone',
    },
     {
        label: '上传签约方',
         value: 'soueceName',
    },
    {
        label: '企业名称',
        value: 'enterName',
    },
    {
        label: '签约园区名称',
        value: 'parkName',
    },
    {
        label: '创建日期',
        value: 'createdTime',
    },
    {
        label: '签约日期',
        value: 'signedTime',
    },
    {
        label: '失效日期',
        value: 'signedOverdueTime',
    },
    {
        label: '签约方式',
        value: 'type',
    },
    {
        label: '合同类型',
        value: 'tempType',
    },
    {
        label: '实名状态',
        value: 'authentication',
    },
     {
        label: '签约状态',
         value: 'status',
    },
      {
        label: '签约文件',
         value: 'pactUrl',
    },
     {
        label: '身份证照片',
         value: 'idCardFront',
    }
]

export const TASK_USER_OPTIONS = [
     {
        label: '姓名',
        value: 'userName',
    },
     {
        label: '手机号码',
         value: 'phone',
    },
      {
        label: '证件类型',
         value: 'idCardType',
    },
     {
        label: '身份证号',
         value: 'idCard',
    },
      {
        label: '银行卡号/支付宝',
         value: 'bankCard',
    },
       {
        label: '预结算金额',
         value: 'settleAmount',
    },
        {
        label: '实名状态',
         value: 'realNameStatus',
    },
     {
        label: '签约方式',
         value: 'signMode',
    },
     {
        label: '签约状态',
         value: 'signStatus',
    },
     {
        label: '是否董监高',
         value: 'isDjg',
    },
     {
        label: '签约时间',
         value: 'signTime',
    },
     {
        label: '交付物上传时间',
         value: 'deliveryUploadTime',
    }
]

export const TASK_ENROLL_OPTIONS = [
    {
        label: '姓名',
        value: 'userName',
    },
     {
        label: '手机号码',
         value: 'phone',
    },
      {
        label: '证件类型',
         value: 'idCardType',
    },
     {
        label: '身份证号',
         value: 'idCard',
    },
      {
        label: '任务报价',
         value: 'settleAmount',
    },
        {
        label: '实名状态',
         value: 'realNameStatus',
    },
     {
        label: '签约方式',
         value: 'signMode',
    },
     {
        label: '签约状态',
         value: 'signStatus',
    },
     {
        label: '任务状态',
         value: 'operateStatus',
    },
     {
        label: '是否董监高',
         value: 'isDjg',
    },
     {
        label: '签约时间',
         value: 'signTime',
    },
     {
        label: '交付物上传时间',
         value: 'deliveryUploadTime',
    }
]

export const TASK_STTLE_OPTIONS = [
    {
        label: '姓名',
        value: 'userName',
    },
     {
        label: '手机号码',
         value: 'phone',
    },
      {
        label: '证件类型',
         value: 'idCardType',
    },
     {
        label: '身份证号',
         value: 'idCard',
    },
      {
        label: '银行卡号/支付宝',
         value: 'bankCard',
    },
        {
        label: '服务费结算方式',
         value: 'serviceFeeSettleMode',
    },
     {
        label: '预结算金额',
         value: 'settleAmount',
    },
     {
        label: '实名状态',
         value: 'realNameStatus',
    },
      {
        label: '签约方式',
         value: 'signMode',
    },
     {
        label: '签约状态',
         value: 'signStatus',
    },
     {
        label: '任务状态',
         value: 'operateStatus',
    },
     {
        label: '是否董监高',
         value: 'isDjg',
    },
     {
        label: '签约时间',
         value: 'signTime',
    },
     {
        label: '交付物上传时间',
         value: 'deliveryUploadTime',
    }
]

export const STTLE_OPTIONS = [
    {
        label: '结算批次名称',
        value: 'settleBatchName',
    },
     {
        label: '任务名称',
        value: 'name',
    },
    {
        label: '结算状态',
        value: 'settleStatus',
    },
    {
        label: '结算批次编号',
        value: 'settleBatchCode',
    },
    {
        label: '任务编号',
        value: 'taskId',
    },
     {
        label: '任务类型',
        value: 'type',
    },
    {
        label: '任务来源企业名称',
        value: 'enterpriseName',
    },
     {
        label: '园区平台公司',
         value: 'parkName',
    },
     {
        label: '服务费结算方式',
         value: 'serviceFeeSettleMode',
    },
    {
        label: '服务费计算方式',
         value: 'serviceFeeCalculateMode',
    },
     {
        label: '平台手续费',
          value: 'platformFeeAmount',
    },
    {
        label: '税额',
        value: 'vatFeeAmount',
    },
    {
        label: '上税总额',
        value: 'vatTotalAmount',
    },
    {
        label: '园区是否垫资',
        value: 'isParkPayFor',
    },
     {
        label: '支付通道',
         value: 'payChannel',
    },
     {
        label: '包含人员数量',
         value: 'settleNum',
    },
     {
        label: '结算成功数量',
         value: 'settleSuccessNum',
    },
     {
        label: '结算总金额',
         value: 'settleAmount',
    },
     {
        label: '结算成功总金额',
         value: 'settleSuccessAmount',
    },
     {
        label: '园区服务费总额',
         value: 'parkServiceAmount',
    },
       {
        label: '开票总金额',
           value: 'invoiceAmount',
    },
        {
        label: '是否已开票',
        value: 'isInvoiced',
    },
    {
        label: '更新时间',
        value: 'updatedTime',
    },
]

export const STTLE_USER_OPTIONS = [
    {
        label: '姓名',
        value: 'userName',
    },
    {
        label: '银行卡号/支付宝',
        value: 'bankCard',
    },
    {
        label: '结算金额',
        value: 'settleAmount',
    },
    {
        label: '签约状态',
        value: 'signStatus',
    },
     {
        label: '结算状态',
         value: 'settleStatus',
    },
     {
         label: '身份证号',
         value: 'idCard',
    },
    {
        label: '服务费率',
        value: 'serviceFeeRatio',
    },
     {
        label: '服务费',
         value: 'serviceFeeAmount',
    },
     {
        label: '开票金额',
         value: 'invoiceAmount',
    },
     {
        label: '结算时间',
         value: 'settleTime',
    },
    {
        label: '签约方式',
        value: 'signMode',
    },
    {
        label: '是否为董监高',
        value: 'isDjg',
    },
    {
        label: '结算失败原因',
        value: 'settleFailReason',
    },
    {
        label: '备注',
        value: 'remark',
    },
]

export const BILLING_OPTIONS = [
    {
        label: '发票申请编号',
        value: 'invoiceId'
    },
     {
        label: '任务类型',
         value: 'taskType',
    },
    {
        label: '状态更新时间',
        value: 'updatedTime',
    },
    {
        label: '包含批次数量',
        value: 'total',
    },
    {
        label: '发票类型',
        value: 'type',
    },
    {
        label: '开票金额',
        value: 'amount',
    },
    {
        label: '开票类目',
        value: 'category'
    },
    {
        label: '开票状态',
        value: 'status',
    },
    {
        label: '备注',
        value: 'remark',
    },
]

export const STTLE_GRANT_OPTIONS = [
    {
        label: '姓名',
        value: 'userName',
    },
    {
         label: '身份证号',
        value: 'idCard',
    },
    {
        label: '银行卡号/支付宝',
        value: 'bankCard',
    },
   {
        label: '结算状态',
         value: 'settleStatus',
    },
     {
        label: '结算金额',
        value: 'settleAmount',
    },
     
    {
        label: '服务费率',
        value: 'serviceFeeRatio',
    },
     {
        label: '服务费',
         value: 'serviceFeeAmount',
    },
     {
        label: '开票金额',
         value: 'invoiceAmount',
    },
    {
        label: '关联企业',
         value: 'enterpriseName',
    },
     {
        label: '关联园区服务商',
         value: 'parkName',
    },
     {
        label: '结算批次编号',
         value: 'settleBatchCode',
    },
    {
        label: '结算批次名称',
         value: 'settleBatchName',
    },
     {
        label: '任务类型',
         value: 'taskType',
    },
    {
        label: '任务编号',
         value: 'taskId',
    },
    {
        label: '任务名称',
         value: 'taskName',
    },
    {
        label: '服务费计算方式',
        value: 'serviceFeeCalculateMode',
    },
     {
        label: '支付通道',
         value: 'payChannel',
    },
    {
        label: '签约方式',
        value: 'signMode',
    },
    {
        label: '签约状态',
        value: 'signStatus',
    },
    {
        label: '结算失败原因',
        value: 'settleFailReason',
    },
     {
        label: '结算时间',
         value: 'updatedTime',
    },
]